package com.sy.controller;


import com.sy.entity.Smslog;
import com.sy.server.intf.SmslogService;
import com.sy.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/smslog")
public class SmslogController {
    @Autowired
    private SmslogService smslogService;
    //新增
    @PostMapping("/add.do")
    public R save(@RequestBody Smslog smslog){
        return smslogService.save(smslog);
    }
    //删除
    @DeleteMapping("/del.do")
    public R del(int id){
        return smslogService.delById(id);
    }
    //查询
    @GetMapping("/all.do")
    public R all(){
        return smslogService.all();
    }
}